<h1>Add Post</h1>
<div id="success"></div>
<?php
echo $this->Form->create('Post');
echo $this->Form->input('title',array('id'=>'title'));
echo $this->Form->input('body', array('rows' => '3','id'=>'body'));
//echo $this->Form->end('Save Post');
echo $this->Js->submit('Save Post',array(
    'before'=>$this->Js->get('#sending')->effect('fadeIn'),
    'success'=>$this->Js->get('#sending')->effect('fadeOut'),
    'update'=>'#success'
));
?>
<div id="sending" style="display: none; background-color: lightgreen">Sending..</div>